package com.zdkj.edge.door.demo.callback.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * 描述: 车辆信息
 *
 * @author ZlTan
 * @date 2025/04/07 19:51
 */
@Data
public class VehicleInfoDto implements Serializable {
    private static final long serialVersionUID = -3276221406157246598L;

    //车辆类型（1: 内部；2: 外部；）
    private Integer vehicleType;
    //车牌号
    private String vehicleNo;
    //驾驶员
    private String personId;
    //驾驶员名称
    private String personName;
    //驾驶员联系电话
    private String phone;

    //1.新增;2.修改;3.删除
    private Integer opType;

    public VehicleInfo transfer() {

        return VehicleInfo.builder()
                .rcclTyp(vehicleType)
                .cphnbsht(vehicleNo)
                .zjrId(personName)
                .phone(phone)
                .opTyp(opType)
                .build();
    }

}
